<?php

namespace api\channel\meituan\alliance;

use app\model\BaseSupplier;
use Carbon\Carbon;
use GaoweiSpace\MeituanPubUnion\Http\Client;

class SeckillAgent extends Seckill
{
    //只用于拉取订单&请勿用于其他
    public function __construct(array $params = [])
    {
        echo '去拉取美团分销联盟代理商配置的接口'.PHP_EOL;

        $baseSupplier = $this->getAgentBaseSupplier(PRODUCT_SECKILL_SERV);

        $this->supplierInfo = $baseSupplier;
        $this->apikey = $this->supplierInfo->api_config['apikey'];

        $this->client = new Client($this->apikey, $this->supplierInfo->api_config['utmSource']);

    }
}